package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class ApiUserAddrAddDto {

    /**
     * 收货人
     */
    @NotNull(message = "收货人不能为空")
    @ApiModelProperty(value = "收货人", dataType = "String", required = true)
    @Size(min = 1,max = 50,message = "收货人不正确")
    private String receiver;

    /**
     * 省ID
     */
    @ApiModelProperty(value = "省ID", dataType = "Long", required = true)
    private Long provinceId;

    /**
     * 城市ID
     */
    @ApiModelProperty(value = "城市ID", dataType = "Long", required = true)
    private Long cityId;

    /**
     * 区ID
     */
    @ApiModelProperty(value = "区ID", dataType = "Long", required = true)
    private Long areaId;

    /**
     * 邮编
     */
    @ApiModelProperty(value = "邮编", dataType = "String", required = true)
    @Size(min = 0,max = 15,message = "地址不正确")
    private String postCode;

    /**
     * 地址
     */
    @NotNull(message = "地址不能为空")
    @ApiModelProperty(value = "地址", dataType = "String", required = true)
    @Size(min = 1,max = 1000,message = "地址不正确")
    private String addr;

    /**
     * 是否默认地址0否 1是
     */
    @NotNull(message = "是否默认地址不能为空")
    @ApiModelProperty(value = "是否默认地址0否 1是", dataType = "String", required = true)
    private Integer commonAddr;

    /**
     * 手机
     */
    @NotNull(message = "手机不能为空")
    @ApiModelProperty(value = "手机", dataType = "String", required = true)
    @Size(min = 1,max = 20,message = "手机不正确")
    private String mobile;


    /**
     * 维度
     */
    @NotNull(message = "维度不能为空")
    @ApiModelProperty(value = "维度", dataType = "Double", required = true)
    private Double latitude;

    /**
     * 精度
     */
    @NotNull(message = "精度不能为空")
    @ApiModelProperty(value = "维度", dataType = "Double", required = true)
    private Double longitude;
}
